package cn.findviewbydream.evil.main.entity;

import java.io.Serializable;
import java.util.Date;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.entity
 * 时间：16-11-5 下午2:31
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：贴子的评论
 ********************************************/
public class PostCommentEntity implements Serializable
{
    private int commentId;/*评论的id,自增*/
    private int postId;/*贴子的id*/
    private UserEntity userEntity;/*用户实体*/
    private String commentContent;/*评论的内容*/
    private Date commentTime;/*评论的时间*/
    private Integer commentFather;/*此评论的父评论,允许为空*/
    private UserEntity atUserEntity;/*此评论@用户的实体,todo:以后可能改成数组*/
    private int commentPraise;/*此评论的点赞数*/

    public PostCommentEntity(int commentId, int postId, UserEntity userEntity, String commentContent, Date
            commentTime, Integer commentFather, UserEntity atUserEntity, int commentPraise)
    {
        this.commentId = commentId;
        this.postId = postId;
        this.userEntity = userEntity;
        this.commentContent = commentContent;
        this.commentTime = commentTime;
        this.commentFather = commentFather;
        this.atUserEntity = atUserEntity;
        this.commentPraise = commentPraise;
    }

    public int getCommentId()
    {
        return commentId;
    }

    public void setCommentId(int commentId)
    {
        this.commentId = commentId;
    }

    public int getPostId()
    {
        return postId;
    }

    public void setPostId(int postId)
    {
        this.postId = postId;
    }

    public UserEntity getUserEntity()
    {
        return userEntity;
    }

    public void setUserEntity(UserEntity userEntity)
    {
        this.userEntity = userEntity;
    }

    public String getCommentContent()
    {
        return commentContent;
    }

    public void setCommentContent(String commentContent)
    {
        this.commentContent = commentContent;
    }

    public Date getCommentTime()
    {
        return commentTime;
    }

    public void setCommentTime(Date commentTime)
    {
        this.commentTime = commentTime;
    }

    public Integer getCommentFather()
    {
        return commentFather;
    }

    public void setCommentFather(Integer commentFather)
    {
        this.commentFather = commentFather;
    }

    public UserEntity getAtUserEntity()
    {
        return atUserEntity;
    }

    public void setAtUserEntity(UserEntity atUserEntity)
    {
        this.atUserEntity = atUserEntity;
    }

    public int getCommentPraise()
    {
        return commentPraise;
    }

    public void setCommentPraise(int commentPraise)
    {
        this.commentPraise = commentPraise;
    }

    @Override
    public String toString()
    {
        return "PostCommentEntity{" +
                "commentId=" + commentId +
                ", postId=" + postId +
                ", userEntity=" + userEntity +
                ", commentContent='" + commentContent + '\'' +
                ", commentTime=" + commentTime +
                ", commentFather=" + commentFather +
                ", atUserEntity=" + atUserEntity +
                ", commentPraise=" + commentPraise +
                '}';
    }
}
